package cn.kongwg.demo04;

import java.util.Date;

/**
 * @author kongwg
 * @create 2021-06-02 16:41
 */
public class TaijieDemo {
    public static int test(int n){
        if (n < 1) {
            throw new IllegalArgumentException();
        }
        if (n ==1 || n==2){
            return n;
        }
        return test(n-1)+test(n-2);
    }

    public static void main(String[] args) {
        System.out.println(test(5));
        Date date = new Date(1111L);
        System.out.println(date);

        System.out.println((char) 68);
        for (int i = 0; i < 10; i++) {
            System.out.println((char) i);

        }
    }
}
